package com.gzy.wbapplication.model;

public class Result<T> {
    private Long code = Code.OK;
    private String message = "OK";
    private T data;

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


    public static class Code{

        public static Long OK = 20000L;

        public static Long ERR = 10000L;
        public static Long usernameNotFound = 50000L;
        public static Long passwordNotMatch = 50001L;
        public static Long TokenExpired = 50002L;
        public static Long TokenInvalid = 50003L;

        public static Long NotFound = 40400L;
    }
}
